﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200128F RID: 4751
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingDialogueSelectOptionScRsp : IMessage<SwordTrainingDialogueSelectOptionScRsp>, IMessage, IEquatable<SwordTrainingDialogueSelectOptionScRsp>, IDeepCloneable<SwordTrainingDialogueSelectOptionScRsp>, IBufferMessage
	{
		// Token: 0x17003C31 RID: 15409
		// (get) Token: 0x0600D508 RID: 54536 RVA: 0x0023D285 File Offset: 0x0023B485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingDialogueSelectOptionScRsp> Parser
		{
			get
			{
				return SwordTrainingDialogueSelectOptionScRsp._parser;
			}
		}

		// Token: 0x17003C32 RID: 15410
		// (get) Token: 0x0600D509 RID: 54537 RVA: 0x0023D28C File Offset: 0x0023B48C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingDialogueSelectOptionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C33 RID: 15411
		// (get) Token: 0x0600D50A RID: 54538 RVA: 0x0023D29E File Offset: 0x0023B49E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingDialogueSelectOptionScRsp.Descriptor;
			}
		}

		// Token: 0x0600D50B RID: 54539 RVA: 0x0023D2A5 File Offset: 0x0023B4A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingDialogueSelectOptionScRsp()
		{
		}

		// Token: 0x0600D50C RID: 54540 RVA: 0x0023D2AD File Offset: 0x0023B4AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingDialogueSelectOptionScRsp(SwordTrainingDialogueSelectOptionScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D50D RID: 54541 RVA: 0x0023D2D2 File Offset: 0x0023B4D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingDialogueSelectOptionScRsp Clone()
		{
			return new SwordTrainingDialogueSelectOptionScRsp(this);
		}

		// Token: 0x17003C34 RID: 15412
		// (get) Token: 0x0600D50E RID: 54542 RVA: 0x0023D2DA File Offset: 0x0023B4DA
		// (set) Token: 0x0600D50F RID: 54543 RVA: 0x0023D2E2 File Offset: 0x0023B4E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D510 RID: 54544 RVA: 0x0023D2EB File Offset: 0x0023B4EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingDialogueSelectOptionScRsp);
		}

		// Token: 0x0600D511 RID: 54545 RVA: 0x0023D2F9 File Offset: 0x0023B4F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingDialogueSelectOptionScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D512 RID: 54546 RVA: 0x0023D328 File Offset: 0x0023B528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D513 RID: 54547 RVA: 0x0023D367 File Offset: 0x0023B567
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D514 RID: 54548 RVA: 0x0023D36F File Offset: 0x0023B56F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D515 RID: 54549 RVA: 0x0023D378 File Offset: 0x0023B578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D516 RID: 54550 RVA: 0x0023D3AC File Offset: 0x0023B5AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D517 RID: 54551 RVA: 0x0023D3EA File Offset: 0x0023B5EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingDialogueSelectOptionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D518 RID: 54552 RVA: 0x0023D41B File Offset: 0x0023B61B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D519 RID: 54553 RVA: 0x0023D424 File Offset: 0x0023B624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005535 RID: 21813
		private static readonly MessageParser<SwordTrainingDialogueSelectOptionScRsp> _parser = new MessageParser<SwordTrainingDialogueSelectOptionScRsp>(() => new SwordTrainingDialogueSelectOptionScRsp());

		// Token: 0x04005536 RID: 21814
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005537 RID: 21815
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04005538 RID: 21816
		private uint retcode_;
	}
}
